package com.xiaolin.date;

import java.time.Month;
import java.time.YearMonth;

/**
 * @ClassName TestMouth
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/9/27
 * @Version 1.0
 */
public class TestMouth {
    public static void main(String[] args) {
        //获取月份的枚举值
        Month september = Month.SEPTEMBER;
        //获取当前月份
        YearMonth now = YearMonth.now();
        System.out.println(now);
    }
}
